package com.myk.game.gobangchess.signs;

import com.myk.game.gobangchess.Sign;

/**
 * 一段文本标记
 */
public class TitleSign extends Sign {

    private final float positionX; //棋盘宽度的等比位置
    private final float positionY; //棋盘高度的等比位置
    private final int direction; //文本方向 0:横向居中  1:纵向居中    2:向右延申     3:向下延申
    private final String title; //一段文字
    private final String color; //文字颜色 "#FFFFFFFF"
    private final float size; //字体大小比例

    public TitleSign(float positionX, float positionY, int direction, String title, String color, float size) {
        this.positionX = positionX;
        this.positionY = positionY;
        this.direction = direction;
        this.title = title;
        this.color = color;
        this.size = size;
    }

    @Override
    public String getSignInfo() {
        return type + "," + positionX + "," + positionY + "," + direction + "," + title + "," + color + "," + size;
    }
}
